home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / editors / emacs / xemacs / xemacs-1.006 / xemacs-1 / lib / xemacs-19.13 / lisp / prim / register.elc < prev    next >
Emacs Compiled Lisp  |  1995-08-29  |  5.3 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was processed as: Emacs Compiled Lisp (other/emacsCompiledLisp).
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
1% dexvert Emacs Compiled Lisp (other/emacsCompiledLisp) magic Unsupported
1% dexvert Combustion 2 Particle Library (other/combustion2ParticleLibrary) ext Unsupported
100% file Emacs/XEmacs v19 byte-compiled Lisp data default
99% file data default
100% TrID Emacs/XEmacs byte-compiled Lisp (generic) default
100% xdgMime text/x-emacs-lisp default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 13 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 63 74 68 6f 6d 70 40 |piled by| cthomp@|
|00000020| 77 69 6c 6c 6f 77 2e 63 | 73 2e 75 69 75 63 2e 65 |willow.c|s.uiuc.e|
|00000030| 64 75 20 6f 6e 20 54 75 | 65 20 41 75 67 20 32 39 |du on Tu|e Aug 29|
|00000040| 20 31 34 3a 32 31 3a 35 | 34 20 31 39 39 35 0a 3b | 14:21:5|4 1995.;|
|00000050| 3b 3b 20 66 72 6f 6d 20 | 66 69 6c 65 20 2f 78 65 |;; from |file /xe|
|00000060| 6d 61 63 73 2f 78 65 6d | 61 63 73 2d 31 39 2e 31 |macs/xem|acs-19.1|
|00000070| 33 2d 72 65 6c 65 61 73 | 65 2f 65 64 69 74 6f 72 |3-releas|e/editor|
|00000080| 2f 6c 69 73 70 2f 70 72 | 69 6d 2f 72 65 67 69 73 |/lisp/pr|im/regis|
|00000090| 74 65 72 2e 65 6c 0a 3b | 3b 3b 20 65 6d 61 63 73 |ter.el.;|;; emacs|
|000000a0| 20 76 65 72 73 69 6f 6e | 20 31 39 2e 31 33 20 58 | version| 19.13 X|
|000000b0| 45 6d 61 63 73 20 4c 75 | 63 69 64 2e 0a 3b 3b 3b |Emacs Lu|cid..;;;|
|000000c0| 20 62 79 74 65 63 6f 6d | 70 20 76 65 72 73 69 6f | bytecom|p versio|
|000000d0| 6e 20 32 2e 32 35 3b 20 | 31 2d 53 65 70 2d 39 34 |n 2.25; |1-Sep-94|
|000000e0| 2e 0a 3b 3b 3b 20 6f 70 | 74 69 6d 69 7a 61 74 69 |..;;; op|timizati|
|000000f0| 6f 6e 20 69 73 20 6f 6e | 2e 0a 3b 3b 3b 20 74 68 |on is on|..;;; th|
|00000100| 69 73 20 66 69 6c 65 20 | 75 73 65 73 20 6f 70 63 |is file |uses opc|
|00000110| 6f 64 65 73 20 77 68 69 | 63 68 20 64 6f 20 6e 6f |odes whi|ch do no|
|00000120| 74 20 65 78 69 73 74 20 | 69 6e 20 45 6d 61 63 73 |t exist |in Emacs|
|00000130| 20 31 38 2e 0a 0a 28 69 | 66 20 28 61 6e 64 20 28 | 18...(i|f (and (|
|00000140| 62 6f 75 6e 64 70 20 27 | 65 6d 61 63 73 2d 76 65 |boundp '|emacs-ve|
|00000150| 72 73 69 6f 6e 29 0a 09 | 20 28 6f 72 20 28 61 6e |rsion)..| (or (an|
|00000160| 64 20 28 62 6f 75 6e 64 | 70 20 27 65 70 6f 63 68 |d (bound|p 'epoch|
|00000170| 3a 3a 76 65 72 73 69 6f | 6e 29 20 65 70 6f 63 68 |::versio|n) epoch|
|00000180| 3a 3a 76 65 72 73 69 6f | 6e 29 0a 09 20 20 20 20 |::versio|n).. |
|00000190| 20 28 73 74 72 69 6e 67 | 2d 6c 65 73 73 70 20 65 | (string|-lessp e|
|000001a0| 6d 61 63 73 2d 76 65 72 | 73 69 6f 6e 20 22 31 39 |macs-ver|sion "19|
|000001b0| 22 29 29 29 0a 20 20 20 | 20 28 65 72 72 6f 72 20 |"))). | (error |
|000001c0| 22 54 68 69 73 20 66 69 | 6c 65 20 77 61 73 20 63 |"This fi|le was c|
|000001d0| 6f 6d 70 69 6c 65 64 20 | 66 6f 72 20 45 6d 61 63 |ompiled |for Emac|
|000001e0| 73 20 31 39 2e 22 29 29 | 0a 0a 28 64 65 66 76 61 |s 19."))|..(defva|
|000001f0| 72 20 72 65 67 69 73 74 | 65 72 2d 61 6c 69 73 74 |r regist|er-alist|
|00000200| 20 6e 69 6c 20 22 5c 0a | 41 6c 69 73 74 20 6f 66 | nil "\.|Alist of|
|00000210| 20 65 6c 65 6d 65 6e 74 | 73 20 28 4e 41 4d 45 20 | element|s (NAME |
|00000220| 2e 20 43 4f 4e 54 45 4e | 54 53 29 2c 20 6f 6e 65 |. CONTEN|TS), one|
|00000230| 20 66 6f 72 20 65 61 63 | 68 20 45 6d 61 63 73 20 | for eac|h Emacs |
|00000240| 72 65 67 69 73 74 65 72 | 2e 0a 4e 41 4d 45 20 69 |register|..NAME i|
|00000250| 73 20 61 20 63 68 61 72 | 61 63 74 65 72 20 28 61 |s a char|acter (a|
|00000260| 20 6e 75 6d 62 65 72 29 | 2e 20 20 43 4f 4e 54 45 | number)|. CONTE|
|00000270| 4e 54 53 20 69 73 20 61 | 20 73 74 72 69 6e 67 2c |NTS is a| string,|
|00000280| 20 6e 75 6d 62 65 72 2c | 0a 66 72 61 6d 65 20 63 | number,|.frame c|
|00000290| 6f 6e 66 69 67 75 72 61 | 74 69 6f 6e 2c 20 6d 61 |onfigura|tion, ma|
|000002a0| 72 6b 20 6f 72 20 6c 69 | 73 74 2e 0a 41 20 6c 69 |rk or li|st..A li|
|000002b0| 73 74 20 6f 66 20 73 74 | 72 69 6e 67 73 20 72 65 |st of st|rings re|
|000002c0| 70 72 65 73 65 6e 74 73 | 20 61 20 72 65 63 74 61 |presents| a recta|
|000002d0| 6e 67 6c 65 2e 0a 41 20 | 6c 69 73 74 20 6f 66 20 |ngle..A |list of |
|000002e0| 74 68 65 20 66 6f 72 6d | 20 28 66 69 6c 65 20 2e |the form| (file .|
|000002f0| 20 4e 41 4d 45 29 20 72 | 65 70 72 65 73 65 6e 74 | NAME) r|epresent|
|00000300| 73 20 74 68 65 20 66 69 | 6c 65 20 6e 61 6d 65 64 |s the fi|le named|
|00000310| 20 4e 41 4d 45 2e 22 29 | 0a 28 66 73 65 74 20 27 | NAME.")|.(fset '|
|00000320| 67 65 74 2d 72 65 67 69 | 73 74 65 72 20 23 5b 28 |get-regi|ster #[(|
|00000330| 63 68 61 72 29 20 22 08 | 09 9e 41 87 22 20 5b 63 |char) ".|..A." [c|
|00000340| 68 61 72 20 72 65 67 69 | 73 74 65 72 2d 61 6c 69 |har regi|ster-ali|
|00000350| 73 74 5d 20 32 20 22 5c | 0a 52 65 74 75 72 6e 20 |st] 2 "\|.Return |
|00000360| 63 6f 6e 74 65 6e 74 73 | 20 6f 66 20 45 6d 61 63 |contents| of Emac|
|00000370| 73 20 72 65 67 69 73 74 | 65 72 20 6e 61 6d 65 64 |s regist|er named|
|00000380| 20 43 48 41 52 2c 20 6f | 72 20 6e 69 6c 20 69 66 | CHAR, o|r nil if|
|00000390| 20 6e 6f 6e 65 2e 22 5d | 29 0a 28 66 73 65 74 20 | none."]|).(fset |
|000003a0| 27 73 65 74 2d 72 65 67 | 69 73 74 65 72 20 23 5b |'set-reg|ister #[|
|000003b0| 28 63 68 61 72 20 76 61 | 6c 75 65 29 20 22 08 09 |(char va|lue) "..|
|000003c0| 9e 89 1a ab 86 5c 6e 0b | a1 88 aa 88 08 0b 42 89 |.....\n.|......B.|
|000003d0| 12 09 42 11 0b 29 87 22 | 20 5b 63 68 61 72 20 72 |..B..)."| [char r|
|000003e0| 65 67 69 73 74 65 72 2d | 61 6c 69 73 74 20 61 65 |egister-|alist ae|
|000003f0| 6c 74 20 76 61 6c 75 65 | 5d 20 33 20 22 5c 0a 53 |lt value|] 3 "\.S|
|00000400| 65 74 20 63 6f 6e 74 65 | 6e 74 73 20 6f 66 20 45 |et conte|nts of E|
|00000410| 6d 61 63 73 20 72 65 67 | 69 73 74 65 72 20 6e 61 |macs reg|ister na|
|00000420| 6d 65 64 20 43 48 41 52 | 20 74 6f 20 56 41 4c 55 |med CHAR| to VALU|
|00000430| 45 2e 20 20 52 65 74 75 | 72 6e 73 20 56 41 4c 55 |E. Retu|rns VALU|
|00000440| 45 2e 0a 53 65 65 20 74 | 68 65 20 64 6f 63 75 6d |E..See t|he docum|
|00000450| 65 6e 74 61 74 69 6f 6e | 20 6f 66 20 74 68 65 20 |entation| of the |
|00000460| 76 61 72 69 61 62 6c 65 | 20 60 72 65 67 69 73 74 |variable| `regist|
|00000470| 65 72 2d 61 6c 69 73 74 | 27 20 66 6f 72 20 70 6f |er-alist|' for po|
|00000480| 73 73 69 62 6c 65 20 56 | 41 4c 55 45 73 2e 22 5d |ssible V|ALUEs."]|
|00000490| 29 0a 28 66 73 65 74 20 | 27 70 6f 69 6e 74 2d 74 |).(fset |'point-t|
|000004a0| 6f 2d 72 65 67 69 73 74 | 65 72 20 23 5b 28 63 68 |o-regist|er #[(ch|
|000004b0| 61 72 29 20 22 c0 09 c2 | 20 5c 22 87 22 20 5b 73 |ar) "...| \"." [s|
|000004c0| 65 74 2d 72 65 67 69 73 | 74 65 72 20 63 68 61 72 |et-regis|ter char|
|000004d0| 20 70 6f 69 6e 74 2d 6d | 61 72 6b 65 72 5d 20 33 | point-m|arker] 3|
|000004e0| 20 22 5c 0a 53 74 6f 72 | 65 20 63 75 72 72 65 6e | "\.Stor|e curren|
|000004f0| 74 20 6c 6f 63 61 74 69 | 6f 6e 20 6f 66 20 70 6f |t locati|on of po|
|00000500| 69 6e 74 20 69 6e 20 72 | 65 67 69 73 74 65 72 20 |int in r|egister |
|00000510| 52 45 47 49 53 54 45 52 | 2e 0a 41 72 67 75 6d 65 |REGISTER|..Argume|
|00000520| 6e 74 20 69 73 20 61 20 | 63 68 61 72 61 63 74 65 |nt is a |characte|
|00000530| 72 2c 20 6e 61 6d 69 6e | 67 20 74 68 65 20 72 65 |r, namin|g the re|
|00000540| 67 69 73 74 65 72 2e 22 | 20 22 63 50 6f 69 6e 74 |gister."| "cPoint|
|00000550| 20 74 6f 20 72 65 67 69 | 73 74 65 72 3a 20 22 5d | to regi|ster: "]|
|00000560| 29 0a 28 66 73 65 74 20 | 27 77 69 6e 64 6f 77 2d |).(fset |'window-|
|00000570| 63 6f 6e 66 69 67 75 72 | 61 74 69 6f 6e 2d 74 6f |configur|ation-to|
|00000580| 2d 72 65 67 69 73 74 65 | 72 20 23 5b 28 63 68 61 |-registe|r #[(cha|
|00000590| 72 29 20 22 c0 09 c2 20 | 5c 22 87 22 20 5b 73 65 |r) "... |\"." [se|
|000005a0| 74 2d 72 65 67 69 73 74 | 65 72 20 63 68 61 72 20 |t-regist|er char |
|000005b0| 63 75 72 72 65 6e 74 2d | 77 69 6e 64 6f 77 2d 63 |current-|window-c|
|000005c0| 6f 6e 66 69 67 75 72 61 | 74 69 6f 6e 5d 20 33 20 |onfigura|tion] 3 |
|000005d0| 22 5c 0a 53 74 6f 72 65 | 20 74 68 65 20 77 69 6e |"\.Store| the win|
|000005e0| 64 6f 77 20 63 6f 6e 66 | 69 67 75 72 61 74 69 6f |dow conf|iguratio|
|000005f0| 6e 20 6f 66 20 74 68 65 | 20 73 65 6c 65 63 74 65 |n of the| selecte|
|00000600| 64 20 66 72 61 6d 65 20 | 69 6e 20 72 65 67 69 73 |d frame |in regis|
|00000610| 74 65 72 20 52 45 47 49 | 53 54 45 52 2e 0a 55 73 |ter REGI|STER..Us|
|00000620| 65 20 5c 5c 5b 6a 75 6d | 70 2d 74 6f 2d 72 65 67 |e \\[jum|p-to-reg|
|00000630| 69 73 74 65 72 5d 20 74 | 6f 20 72 65 73 74 6f 72 |ister] t|o restor|
|00000640| 65 20 74 68 65 20 63 6f | 6e 66 69 67 75 72 61 74 |e the co|nfigurat|
|00000650| 69 6f 6e 2e 0a 41 72 67 | 75 6d 65 6e 74 20 69 73 |ion..Arg|ument is|
|00000660| 20 61 20 63 68 61 72 61 | 63 74 65 72 2c 20 6e 61 | a chara|cter, na|
|00000670| 6d 69 6e 67 20 74 68 65 | 20 72 65 67 69 73 74 65 |ming the| registe|
|00000680| 72 2e 22 20 22 63 57 69 | 6e 64 6f 77 20 63 6f 6e |r." "cWi|ndow con|
|00000690| 66 69 67 75 72 61 74 69 | 6f 6e 20 74 6f 20 72 65 |figurati|on to re|
|000006a0| 67 69 73 74 65 72 3a 20 | 22 5d 29 0a 28 64 65 66 |gister: |"]).(def|
|000006b0| 69 6e 65 2d 66 75 6e 63 | 74 69 6f 6e 20 27 72 65 |ine-func|tion 're|
|000006c0| 67 69 73 74 65 72 2d 74 | 6f 2d 70 6f 69 6e 74 20 |gister-t|o-point |
|000006d0| 27 6a 75 6d 70 2d 74 6f | 2d 72 65 67 69 73 74 65 |'jump-to|-registe|
|000006e0| 72 29 0a 28 66 73 65 74 | 20 27 6a 75 6d 70 2d 74 |r).(fset| 'jump-t|
|000006f0| 6f 2d 72 65 67 69 73 74 | 65 72 20 23 5b 28 63 68 |o-regist|er #[(ch|
|00000700| 61 72 29 20 22 c0 09 21 | 1a c3 5c 6e 21 ab 85 c4 |ar) "..!|..\n!...|
|00000710| 5c 6e 21 aa ab c5 5c 6e | 21 ab 93 c6 5c 6e 21 ac |\n!...\n|!...\n!.|
|00000720| 84 c7 c8 21 88 c9 c6 5c | 6e 21 21 88 5c 6e 62 aa |...!...\|n!!.\nb.|
|00000730| 93 5c 6e 3a ab 8c 5c 6e | 40 ca 3d ab 86 cb 5c 6e |.\n:..\n|@.=...\n|
|00000740| 41 21 aa 83 c7 cc 21 29 | 87 22 20 5b 67 65 74 2d |A!....!)|." [get-|
|00000750| 72 65 67 69 73 74 65 72 | 20 63 68 61 72 20 76 61 |register| char va|
|00000760| 6c 20 77 69 6e 64 6f 77 | 2d 63 6f 6e 66 69 67 75 |l window|-configu|
|00000770| 72 61 74 69 6f 6e 2d 70 | 20 73 65 74 2d 77 69 6e |ration-p| set-win|
|00000780| 64 6f 77 2d 63 6f 6e 66 | 69 67 75 72 61 74 69 6f |dow-conf|iguratio|
|00000790| 6e 20 6d 61 72 6b 65 72 | 70 20 6d 61 72 6b 65 72 |n marker|p marker|
|000007a0| 2d 62 75 66 66 65 72 20 | 65 72 72 6f 72 20 22 54 |-buffer |error "T|
|000007b0| 68 61 74 20 72 65 67 69 | 73 74 65 72 27 73 20 62 |hat regi|ster's b|
|000007c0| 75 66 66 65 72 20 6e 6f | 20 6c 6f 6e 67 65 72 20 |uffer no| longer |
|000007d0| 65 78 69 73 74 73 22 20 | 73 77 69 74 63 68 2d 74 |exists" |switch-t|
|000007e0| 6f 2d 62 75 66 66 65 72 | 20 66 69 6c 65 20 66 69 |o-buffer| file fi|
|000007f0| 6e 64 2d 66 69 6c 65 20 | 22 52 65 67 69 73 74 65 |nd-file |"Registe|
|00000800| 72 20 64 6f 65 73 6e 27 | 74 20 63 6f 6e 74 61 69 |r doesn'|t contai|
|00000810| 6e 20 61 20 62 75 66 66 | 65 72 20 70 6f 73 69 74 |n a buff|er posit|
|00000820| 69 6f 6e 20 6f 72 20 63 | 6f 6e 66 69 67 75 72 61 |ion or c|onfigura|
|00000830| 74 69 6f 6e 22 5d 20 33 | 20 22 5c 0a 4d 6f 76 65 |tion"] 3| "\.Move|
|00000840| 20 70 6f 69 6e 74 20 74 | 6f 20 6c 6f 63 61 74 69 | point t|o locati|
|00000850| 6f 6e 20 73 74 6f 72 65 | 64 20 69 6e 20 61 20 72 |on store|d in a r|
|00000860| 65 67 69 73 74 65 72 2e | 0a 49 66 20 74 68 65 20 |egister.|.If the |
|00000870| 72 65 67 69 73 74 65 72 | 20 63 6f 6e 74 61 69 6e |register| contain|
|00000880| 73 20 61 20 66 69 6c 65 | 20 6e 61 6d 65 2c 20 66 |s a file| name, f|
|00000890| 69 6e 64 20 74 68 61 74 | 20 66 69 6c 65 2e 0a 20 |ind that| file.. |
|000008a0| 28 54 6f 20 70 75 74 20 | 61 20 66 69 6c 65 20 6e |(To put |a file n|
|000008b0| 61 6d 65 20 69 6e 20 61 | 20 72 65 67 69 73 74 65 |ame in a| registe|
|000008c0| 72 2c 20 79 6f 75 20 6d | 75 73 74 20 75 73 65 20 |r, you m|ust use |
|000008d0| 60 73 65 74 2d 72 65 67 | 69 73 74 65 72 27 2e 29 |`set-reg|ister'.)|
|000008e0| 0a 49 66 20 74 68 65 20 | 72 65 67 69 73 74 65 72 |.If the |register|
|000008f0| 20 63 6f 6e 74 61 69 6e | 73 20 61 20 77 69 6e 64 | contain|s a wind|
|00000900| 6f 77 20 63 6f 6e 66 69 | 67 75 72 61 74 69 6f 6e |ow confi|guration|
|00000910| 20 28 6f 6e 65 20 66 72 | 61 6d 65 29 20 6f 72 20 | (one fr|ame) or |
|00000920| 61 20 66 72 61 6d 65 0a | 63 6f 6e 66 69 67 75 72 |a frame.|configur|
|00000930| 61 74 69 6f 6e 20 28 61 | 6c 6c 20 66 72 61 6d 65 |ation (a|ll frame|
|00000940| 73 29 2c 20 72 65 73 74 | 6f 72 65 20 74 68 61 74 |s), rest|ore that|
|00000950| 20 66 72 61 6d 65 20 6f | 72 20 61 6c 6c 20 66 72 | frame o|r all fr|
|00000960| 61 6d 65 73 20 61 63 63 | 6f 72 64 69 6e 67 6c 79 |ames acc|ordingly|
|00000970| 2e 0a 41 72 67 75 6d 65 | 6e 74 20 69 73 20 61 20 |..Argume|nt is a |
|00000980| 63 68 61 72 61 63 74 65 | 72 2c 20 6e 61 6d 69 6e |characte|r, namin|
|00000990| 67 20 74 68 65 20 72 65 | 67 69 73 74 65 72 2e 22 |g the re|gister."|
|000009a0| 20 22 63 4a 75 6d 70 20 | 74 6f 20 72 65 67 69 73 | "cJump |to regis|
|000009b0| 74 65 72 3a 20 22 5d 29 | 0a 28 66 73 65 74 20 27 |ter: "])|.(fset '|
|000009c0| 76 69 65 77 2d 72 65 67 | 69 73 74 65 72 20 23 5b |view-reg|ister #[|
|000009d0| 28 63 68 61 72 29 20 22 | c0 09 21 89 1a ac 89 c3 |(char) "|..!.....|
|000009e0| c4 c5 09 21 5c 22 82 96 | 00 c6 90 c7 c8 c9 c5 09 |...!\"..|........|
|000009f0| 21 5c 22 21 88 5c 6e a8 | ab 85 c7 5c 6e 21 aa f1 |!\"!.\n.|...\n!..|
|00000a00| ca 5c 6e 21 ab 9d cb 5c | 6e 21 89 1e 0c ac 85 c7 |.\n!...\|n!......|
|00000a10| cd 21 aa 8d c7 c8 ce cf | cb 5c 6e 21 21 d0 5c 6e |.!......|.\n!!.\n|
|00000a20| 21 23 21 29 aa cf d1 5c | 6e 21 ab 85 c7 d2 21 aa |!#!)...\|n!....!.|
|00000a30| c5 5c 6e 3a ab 94 5c 6e | 40 d3 3d ab 8e c7 d4 21 |.\n:..\n|@.=....!|
|00000a40| 88 d5 5c 6e 41 21 88 c7 | d6 21 aa ad 5c 6e 3a ab |..\nA!..|.!..\n:.|
|00000a50| 95 c7 d7 21 88 5c 6e ad | a2 c7 5c 6e 40 21 88 d8 |...!.\n.|..\n@!..|
|00000a60| 20 88 5c 6e 41 89 12 aa | 70 5c 6e 3b ab 89 c7 d9 | .\nA...|p\n;....|
|00000a70| 21 88 c7 5c 6e 21 aa 87 | c7 da 21 88 d5 5c 6e 21 |!..\n!..|..!..\n!|
|00000a80| 91 29 87 22 20 5b 67 65 | 74 2d 72 65 67 69 73 74 |.)." [ge|t-regist|
|00000a90| 65 72 20 63 68 61 72 20 | 76 61 6c 20 6d 65 73 73 |er char |val mess|
|00000aa0| 61 67 65 20 22 52 65 67 | 69 73 74 65 72 20 25 73 |age "Reg|ister %s|
|00000ab0| 20 69 73 20 65 6d 70 74 | 79 22 20 73 69 6e 67 6c | is empt|y" singl|
|00000ac0| 65 2d 6b 65 79 2d 64 65 | 73 63 72 69 70 74 69 6f |e-key-de|scriptio|
|00000ad0| 6e 20 22 2a 4f 75 74 70 | 75 74 2a 22 20 70 72 69 |n "*Outp|ut*" pri|
|00000ae0| 6e 63 20 66 6f 72 6d 61 | 74 20 22 52 65 67 69 73 |nc forma|t "Regis|
|00000af0| 74 65 72 20 25 73 20 63 | 6f 6e 74 61 69 6e 73 20 |ter %s c|ontains |
|00000b00| 22 20 6d 61 72 6b 65 72 | 70 20 6d 61 72 6b 65 72 |" marker|p marker|
|00000b10| 2d 62 75 66 66 65 72 20 | 62 75 66 20 22 61 20 6d |-buffer |buf "a m|
|00000b20| 61 72 6b 65 72 20 69 6e | 20 6e 6f 20 62 75 66 66 |arker in| no buff|
|00000b30| 65 72 22 20 22 61 20 62 | 75 66 66 65 72 20 70 6f |er" "a b|uffer po|
|00000b40| 73 69 74 69 6f 6e 3a 5c | 6e 62 75 66 66 20 25 73 |sition:\|nbuff %s|
|00000b50| 2c 20 70 6f 73 69 74 69 | 6f 6e 20 25 73 22 20 62 |, positi|on %s" b|
|00000b60| 75 66 66 65 72 2d 6e 61 | 6d 65 20 6d 61 72 6b 65 |uffer-na|me marke|
|00000b70| 72 2d 70 6f 73 69 74 69 | 6f 6e 20 77 69 6e 64 6f |r-positi|on windo|
|00000b80| 77 2d 63 6f 6e 66 69 67 | 75 72 61 74 69 6f 6e 2d |w-config|uration-|
|00000b90| 70 20 22 61 20 77 69 6e | 64 6f 77 20 63 6f 6e 66 |p "a win|dow conf|
|00000ba0| 69 67 75 72 61 74 69 6f | 6e 2e 22 20 66 69 6c 65 |iguratio|n." file|
|00000bb0| 20 22 74 68 65 20 66 69 | 6c 65 20 22 20 70 72 69 | "the fi|le " pri|
|00000bc0| 6e 31 20 22 2e 22 20 22 | 74 68 65 20 72 65 63 74 |n1 "." "|the rect|
|00000bd0| 61 6e 67 6c 65 3a 5c 6e | 22 20 74 65 72 70 72 69 |angle:\n|" terpri|
|00000be0| 20 22 74 68 65 20 74 65 | 78 74 3a 5c 6e 22 20 22 | "the te|xt:\n" "|
|00000bf0| 47 61 72 62 61 67 65 3a | 5c 6e 22 5d 20 38 20 22 |Garbage:|\n"] 8 "|
|00000c00| 5c 0a 44 69 73 70 6c 61 | 79 20 77 68 61 74 20 69 |\.Displa|y what i|
|00000c10| 73 20 63 6f 6e 74 61 69 | 6e 65 64 20 69 6e 20 72 |s contai|ned in r|
|00000c20| 65 67 69 73 74 65 72 20 | 6e 61 6d 65 64 20 52 45 |egister |named RE|
|00000c30| 47 49 53 54 45 52 2e 0a | 52 45 47 49 53 54 45 52 |GISTER..|REGISTER|
|00000c40| 20 69 73 20 61 20 63 68 | 61 72 61 63 74 65 72 2e | is a ch|aracter.|
|00000c50| 22 20 22 63 56 69 65 77 | 20 72 65 67 69 73 74 65 |" "cView| registe|
|00000c60| 72 3a 20 22 5d 29 0a 28 | 66 73 65 74 20 27 69 6e |r: "]).(|fset 'in|
|00000c70| 73 65 72 74 2d 72 65 67 | 69 73 74 65 72 20 23 5b |sert-reg|ister #[|
|00000c80| 28 63 68 61 72 20 26 6f | 70 74 69 6f 6e 61 6c 20 |(char &o|ptional |
|00000c90| 61 72 67 29 20 22 c0 20 | 88 c1 5c 6e 21 89 1b 3a |arg) ". |..\n!..:|
|00000ca0| ab 86 c4 0b 21 88 aa ab | 0b 3b ab 85 0b 63 88 aa |....!...|.;...c..|
|00000cb0| a2 0b a8 ab 87 c5 0b 70 | 5c 22 88 aa 97 c6 0b 21 |.......p|\".....!|
|00000cc0| ab 8e c7 0b 21 ab 89 c5 | c7 0b 21 70 5c 22 88 aa |....!...|..!p\"..|
|00000cd0| 84 c8 c9 21 88 29 0e 5c | 6e 3f ad 83 cb cc 21 87 |...!.).\|n?....!.|
|00000ce0| 22 20 5b 70 75 73 68 2d | 6d 61 72 6b 20 67 65 74 |" [push-|mark get|
|00000cf0| 2d 72 65 67 69 73 74 65 | 72 20 63 68 61 72 20 76 |-registe|r char v|
|00000d00| 61 6c 20 69 6e 73 65 72 | 74 2d 72 65 63 74 61 6e |al inser|t-rectan|
|00000d10| 67 6c 65 20 70 72 69 6e | 63 20 6d 61 72 6b 65 72 |gle prin|c marker|
|00000d20| 70 20 6d 61 72 6b 65 72 | 2d 70 6f 73 69 74 69 6f |p marker|-positio|
|00000d30| 6e 20 65 72 72 6f 72 20 | 22 52 65 67 69 73 74 65 |n error |"Registe|
|00000d40| 72 20 64 6f 65 73 20 6e | 6f 74 20 63 6f 6e 74 61 |r does n|ot conta|
|00000d50| 69 6e 20 74 65 78 74 22 | 20 61 72 67 20 65 78 63 |in text"| arg exc|
|00000d60| 68 61 6e 67 65 2d 70 6f | 69 6e 74 2d 61 6e 64 2d |hange-po|int-and-|
|00000d70| 6d 61 72 6b 20 74 5d 20 | 34 20 22 5c 0a 49 6e 73 |mark t] |4 "\.Ins|
|00000d80| 65 72 74 20 63 6f 6e 74 | 65 6e 74 73 20 6f 66 20 |ert cont|ents of |
|00000d90| 72 65 67 69 73 74 65 72 | 20 52 45 47 2e 20 20 52 |register| REG. R|
|00000da0| 45 47 20 69 73 20 61 20 | 63 68 61 72 61 63 74 65 |EG is a |characte|
|00000db0| 72 2e 0a 4e 6f 72 6d 61 | 6c 6c 79 20 70 75 74 73 |r..Norma|lly puts|
|00000dc0| 20 70 6f 69 6e 74 20 62 | 65 66 6f 72 65 20 61 6e | point b|efore an|
|00000dd0| 64 20 6d 61 72 6b 20 61 | 66 74 65 72 20 74 68 65 |d mark a|fter the|
|00000de0| 20 69 6e 73 65 72 74 65 | 64 20 74 65 78 74 2e 0a | inserte|d text..|
|00000df0| 49 66 20 6f 70 74 69 6f | 6e 61 6c 20 73 65 63 6f |If optio|nal seco|
|00000e00| 6e 64 20 61 72 67 20 69 | 73 20 6e 6f 6e 2d 6e 69 |nd arg i|s non-ni|
|00000e10| 6c 2c 20 70 75 74 73 20 | 6d 61 72 6b 20 62 65 66 |l, puts |mark bef|
|00000e20| 6f 72 65 20 61 6e 64 20 | 70 6f 69 6e 74 20 61 66 |ore and |point af|
|00000e30| 74 65 72 2e 0a 49 6e 74 | 65 72 61 63 74 69 76 65 |ter..Int|eractive|
|00000e40| 6c 79 2c 20 73 65 63 6f | 6e 64 20 61 72 67 20 69 |ly, seco|nd arg i|
|00000e50| 73 20 6e 6f 6e 2d 6e 69 | 6c 20 69 66 20 70 72 65 |s non-ni|l if pre|
|00000e60| 66 69 78 20 61 72 67 20 | 69 73 20 73 75 70 70 6c |fix arg |is suppl|
|00000e70| 69 65 64 2e 22 20 22 2a | 63 49 6e 73 65 72 74 20 |ied." "*|cInsert |
|00000e80| 72 65 67 69 73 74 65 72 | 3a 20 5c 6e 50 22 5d 29 |register|: \nP"])|
|00000e90| 0a 28 66 73 65 74 20 27 | 63 6f 70 79 2d 74 6f 2d |.(fset '|copy-to-|
|00000ea0| 72 65 67 69 73 74 65 72 | 20 23 5b 28 63 68 61 72 |register| #[(char|
|00000eb0| 20 73 74 61 72 74 20 65 | 6e 64 20 26 6f 70 74 69 | start e|nd &opti|
|00000ec0| 6f 6e 61 6c 20 64 65 6c | 65 74 65 2d 66 6c 61 67 |onal del|ete-flag|
|00000ed0| 29 20 22 c0 09 5c 6e 0b | 7b 5c 22 88 0c ad 83 5c |) "..\n.|{\"....\|
|00000ee0| 6e 0b 7c 87 22 20 5b 73 | 65 74 2d 72 65 67 69 73 |n.|." [s|et-regis|
|00000ef0| 74 65 72 20 63 68 61 72 | 20 73 74 61 72 74 20 65 |ter char| start e|
|00000f00| 6e 64 20 64 65 6c 65 74 | 65 2d 66 6c 61 67 5d 20 |nd delet|e-flag] |
|00000f10| 34 20 22 5c 0a 43 6f 70 | 79 20 72 65 67 69 6f 6e |4 "\.Cop|y region|
|00000f20| 20 69 6e 74 6f 20 72 65 | 67 69 73 74 65 72 20 52 | into re|gister R|
|00000f30| 45 47 2e 0a 57 69 74 68 | 20 70 72 65 66 69 78 20 |EG..With| prefix |
|00000f40| 61 72 67 2c 20 64 65 6c | 65 74 65 20 61 73 20 77 |arg, del|ete as w|
|00000f50| 65 6c 6c 2e 0a 43 61 6c | 6c 65 64 20 66 72 6f 6d |ell..Cal|led from|
|00000f60| 20 70 72 6f 67 72 61 6d | 2c 20 74 61 6b 65 73 20 | program|, takes |
|00000f70| 66 6f 75 72 20 61 72 67 | 73 3a 0a 52 45 47 2c 20 |four arg|s:.REG, |
|00000f80| 53 54 41 52 54 2c 20 45 | 4e 44 20 61 6e 64 20 44 |START, E|ND and D|
|00000f90| 45 4c 45 54 45 2d 46 4c | 41 47 2e 0a 53 54 41 52 |ELETE-FL|AG..STAR|
|00000fa0| 54 20 61 6e 64 20 45 4e | 44 20 61 72 65 20 62 75 |T and EN|D are bu|
|00000fb0| 66 66 65 72 20 70 6f 73 | 69 74 69 6f 6e 73 20 69 |ffer pos|itions i|
|00000fc0| 6e 64 69 63 61 74 69 6e | 67 20 77 68 61 74 20 74 |ndicatin|g what t|
|00000fd0| 6f 20 63 6f 70 79 2e 22 | 20 22 63 43 6f 70 79 20 |o copy."| "cCopy |
|00000fe0| 74 6f 20 72 65 67 69 73 | 74 65 72 3a 20 5c 6e 72 |to regis|ter: \nr|
|00000ff0| 5c 6e 50 22 5d 29 0a 28 | 66 73 65 74 20 27 61 70 |\nP"]).(|fset 'ap|
|00001000| 70 65 6e 64 2d 74 6f 2d | 72 65 67 69 73 74 65 72 |pend-to-|register|
|00001010| 20 23 5b 28 63 68 61 72 | 20 73 74 61 72 74 20 65 | #[(char| start e|
|00001020| 6e 64 20 26 6f 70 74 69 | 6f 6e 61 6c 20 64 65 6c |nd &opti|onal del|
|00001030| 65 74 65 2d 66 6c 61 67 | 29 20 22 c0 09 21 3b ac |ete-flag|) "..!;.|
|00001040| 84 c2 c3 21 88 c4 09 c0 | 09 21 0d 0e 06 7b 50 5c |...!....|.!...{P\|
|00001050| 22 88 0e 07 ad 84 0d 0e | 06 7c 87 22 20 5b 67 65 |".......|.|." [ge|
|00001060| 74 2d 72 65 67 69 73 74 | 65 72 20 63 68 61 72 20 |t-regist|er char |
|00001070| 65 72 72 6f 72 20 22 52 | 65 67 69 73 74 65 72 20 |error "R|egister |
|00001080| 64 6f 65 73 20 6e 6f 74 | 20 63 6f 6e 74 61 69 6e |does not| contain|
|00001090| 20 74 65 78 74 22 20 73 | 65 74 2d 72 65 67 69 73 | text" s|et-regis|
|000010a0| 74 65 72 20 73 74 61 72 | 74 20 65 6e 64 20 64 65 |ter star|t end de|
|000010b0| 6c 65 74 65 2d 66 6c 61 | 67 5d 20 35 20 22 5c 0a |lete-fla|g] 5 "\.|
|000010c0| 41 70 70 65 6e 64 20 72 | 65 67 69 6f 6e 20 74 6f |Append r|egion to|
|000010d0| 20 74 65 78 74 20 69 6e | 20 72 65 67 69 73 74 65 | text in| registe|
|000010e0| 72 20 52 45 47 2e 0a 57 | 69 74 68 20 70 72 65 66 |r REG..W|ith pref|
|000010f0| 69 78 20 61 72 67 2c 20 | 64 65 6c 65 74 65 20 61 |ix arg, |delete a|
|00001100| 73 20 77 65 6c 6c 2e 0a | 43 61 6c 6c 65 64 20 66 |s well..|Called f|
|00001110| 72 6f 6d 20 70 72 6f 67 | 72 61 6d 2c 20 74 61 6b |rom prog|ram, tak|
|00001120| 65 73 20 66 6f 75 72 20 | 61 72 67 73 3a 0a 52 45 |es four |args:.RE|
|00001130| 47 2c 20 53 54 41 52 54 | 2c 20 45 4e 44 20 61 6e |G, START|, END an|
|00001140| 64 20 44 45 4c 45 54 45 | 2d 46 4c 41 47 2e 0a 53 |d DELETE|-FLAG..S|
|00001150| 54 41 52 54 20 61 6e 64 | 20 45 4e 44 20 61 72 65 |TART and| END are|
|00001160| 20 62 75 66 66 65 72 20 | 70 6f 73 69 74 69 6f 6e | buffer |position|
|00001170| 73 20 69 6e 64 69 63 61 | 74 69 6e 67 20 77 68 61 |s indica|ting wha|
|00001180| 74 20 74 6f 20 61 70 70 | 65 6e 64 2e 22 20 22 63 |t to app|end." "c|
|00001190| 41 70 70 65 6e 64 20 74 | 6f 20 72 65 67 69 73 74 |Append t|o regist|
|000011a0| 65 72 3a 20 5c 6e 72 5c | 6e 50 22 5d 29 0a 28 66 |er: \nr\|nP"]).(f|
|000011b0| 73 65 74 20 27 70 72 65 | 70 65 6e 64 2d 74 6f 2d |set 'pre|pend-to-|
|000011c0| 72 65 67 69 73 74 65 72 | 20 23 5b 28 63 68 61 72 |register| #[(char|
|000011d0| 20 73 74 61 72 74 20 65 | 6e 64 20 26 6f 70 74 69 | start e|nd &opti|
|000011e0| 6f 6e 61 6c 20 64 65 6c | 65 74 65 2d 66 6c 61 67 |onal del|ete-flag|
|000011f0| 29 20 22 c0 09 21 3b ac | 84 c2 c3 21 88 c4 09 0d |) "..!;.|...!....|
|00001200| 0e 06 7b c0 09 21 50 5c | 22 88 0e 07 ad 84 0d 0e |..{..!P\|".......|
|00001210| 06 7c 87 22 20 5b 67 65 | 74 2d 72 65 67 69 73 74 |.|." [ge|t-regist|
|00001220| 65 72 20 63 68 61 72 20 | 65 72 72 6f 72 20 22 52 |er char |error "R|
|00001230| 65 67 69 73 74 65 72 20 | 64 6f 65 73 20 6e 6f 74 |egister |does not|
|00001240| 20 63 6f 6e 74 61 69 6e | 20 74 65 78 74 22 20 73 | contain| text" s|
|00001250| 65 74 2d 72 65 67 69 73 | 74 65 72 20 73 74 61 72 |et-regis|ter star|
|00001260| 74 20 65 6e 64 20 64 65 | 6c 65 74 65 2d 66 6c 61 |t end de|lete-fla|
|00001270| 67 5d 20 35 20 22 5c 0a | 50 72 65 70 65 6e 64 20 |g] 5 "\.|Prepend |
|00001280| 72 65 67 69 6f 6e 20 74 | 6f 20 74 65 78 74 20 69 |region t|o text i|
|00001290| 6e 20 72 65 67 69 73 74 | 65 72 20 52 45 47 2e 0a |n regist|er REG..|
|000012a0| 57 69 74 68 20 70 72 65 | 66 69 78 20 61 72 67 2c |With pre|fix arg,|
|000012b0| 20 64 65 6c 65 74 65 20 | 61 73 20 77 65 6c 6c 2e | delete |as well.|
|000012c0| 0a 43 61 6c 6c 65 64 20 | 66 72 6f 6d 20 70 72 6f |.Called |from pro|
|000012d0| 67 72 61 6d 2c 20 74 61 | 6b 65 73 20 66 6f 75 72 |gram, ta|kes four|
|000012e0| 20 61 72 67 73 3a 0a 52 | 45 47 2c 20 53 54 41 52 | args:.R|EG, STAR|
|000012f0| 54 2c 20 45 4e 44 20 61 | 6e 64 20 44 45 4c 45 54 |T, END a|nd DELET|
|00001300| 45 2d 46 4c 41 47 2e 0a | 53 54 41 52 54 20 61 6e |E-FLAG..|START an|
|00001310| 64 20 45 4e 44 20 61 72 | 65 20 62 75 66 66 65 72 |d END ar|e buffer|
|00001320| 20 70 6f 73 69 74 69 6f | 6e 73 20 69 6e 64 69 63 | positio|ns indic|
|00001330| 61 74 69 6e 67 20 77 68 | 61 74 20 74 6f 20 70 72 |ating wh|at to pr|
|00001340| 65 70 65 6e 64 2e 22 20 | 22 63 50 72 65 70 65 6e |epend." |"cPrepen|
|00001350| 64 20 74 6f 20 72 65 67 | 69 73 74 65 72 3a 20 5c |d to reg|ister: \|
|00001360| 6e 72 5c 6e 50 22 5d 29 | 0a 28 66 73 65 74 20 27 |nr\nP"])|.(fset '|
|00001370| 63 6f 70 79 2d 72 65 63 | 74 61 6e 67 6c 65 2d 74 |copy-rec|tangle-t|
|00001380| 6f 2d 72 65 67 69 73 74 | 65 72 20 23 5b 28 63 68 |o-regist|er #[(ch|
|00001390| 61 72 20 73 74 61 72 74 | 20 65 6e 64 20 26 6f 70 |ar start| end &op|
|000013a0| 74 69 6f 6e 61 6c 20 64 | 65 6c 65 74 65 2d 66 6c |tional d|elete-fl|
|000013b0| 61 67 29 20 22 c0 09 5c | 6e ab 86 c3 0c 0d 5c 22 |ag) "..\|n.....\"|
|000013c0| aa 84 c6 0c 0d 5c 22 5c | 22 87 22 20 5b 73 65 74 |.....\"\|"." [set|
|000013d0| 2d 72 65 67 69 73 74 65 | 72 20 63 68 61 72 20 64 |-registe|r char d|
|000013e0| 65 6c 65 74 65 2d 66 6c | 61 67 20 64 65 6c 65 74 |elete-fl|ag delet|
|000013f0| 65 2d 65 78 74 72 61 63 | 74 2d 72 65 63 74 61 6e |e-extrac|t-rectan|
|00001400| 67 6c 65 20 73 74 61 72 | 74 20 65 6e 64 20 65 78 |gle star|t end ex|
|00001410| 74 72 61 63 74 2d 72 65 | 63 74 61 6e 67 6c 65 5d |tract-re|ctangle]|
|00001420| 20 35 20 22 5c 0a 43 6f | 70 79 20 72 65 63 74 61 | 5 "\.Co|py recta|
|00001430| 6e 67 75 6c 61 72 20 72 | 65 67 69 6f 6e 20 69 6e |ngular r|egion in|
|00001440| 74 6f 20 72 65 67 69 73 | 74 65 72 20 52 45 47 2e |to regis|ter REG.|
|00001450| 0a 57 69 74 68 20 70 72 | 65 66 69 78 20 61 72 67 |.With pr|efix arg|
|00001460| 2c 20 64 65 6c 65 74 65 | 20 61 73 20 77 65 6c 6c |, delete| as well|
|00001470| 2e 0a 43 61 6c 6c 65 64 | 20 66 72 6f 6d 20 70 72 |..Called| from pr|
|00001480| 6f 67 72 61 6d 2c 20 74 | 61 6b 65 73 20 66 6f 75 |ogram, t|akes fou|
|00001490| 72 20 61 72 67 73 3a 0a | 52 45 47 2c 20 53 54 41 |r args:.|REG, STA|
|000014a0| 52 54 2c 20 45 4e 44 20 | 61 6e 64 20 44 45 4c 45 |RT, END |and DELE|
|000014b0| 54 45 2d 46 4c 41 47 2e | 0a 53 54 41 52 54 20 61 |TE-FLAG.|.START a|
|000014c0| 6e 64 20 45 4e 44 20 61 | 72 65 20 62 75 66 66 65 |nd END a|re buffe|
|000014d0| 72 20 70 6f 73 69 74 69 | 6f 6e 73 20 67 69 76 69 |r positi|ons givi|
|000014e0| 6e 67 20 74 77 6f 20 63 | 6f 72 6e 65 72 73 20 6f |ng two c|orners o|
|000014f0| 66 20 72 65 63 74 61 6e | 67 6c 65 2e 22 20 22 63 |f rectan|gle." "c|
|00001500| 43 6f 70 79 20 72 65 63 | 74 61 6e 67 6c 65 20 74 |Copy rec|tangle t|
|00001510| 6f 20 72 65 67 69 73 74 | 65 72 3a 20 5c 6e 72 5c |o regist|er: \nr\|
|00001520| 6e 50 22 5d 29 0a | |nP"]). | |
+--------+-------------------------+-------------------------+--------+--------+